package com.chenjie.executor.day08;

public class Main1 {
    public static void main(String[] args) {
//       Task2 task=new Task2();
//        Thread thread = new Thread(task);
//        thread.start();
//        try {
//            thread.sleep(1000L);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
//        thread.interrupt();

//        Task3 task = new Task3();
//        Thread thread = new Thread(task);
//        thread.start();
//        try {
//            thread.sleep(1000L);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
//        thread.interrupt();
        Task4 task = new Task4();
        Thread thread = new Thread(task);
        thread.start();
        try {
            thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        thread.interrupt();
    }
}
